package cn.tedu.boot13.controller;

import cn.tedu.boot13.entity.Emp;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class ParamController {
    @RequestMapping("/param2")
    @ResponseBody
    public String param2(String name,int age){
        return name+":"+age;
    }
    @RequestMapping("/param3")
    @ResponseBody
    public String param3(Emp emp){
        return ""+emp;
    }


}
